/*  1:   */ package org.intellij.lang.regexp.psi.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.lang.ASTNode;
import org.intellij.lang.regexp.RegExpElementTypes;
import org.intellij.lang.regexp.psi.RegExpAtom;
import org.intellij.lang.regexp.psi.RegExpBranch;
import org.intellij.lang.regexp.psi.RegExpElementVisitor;
import org.jetbrains.annotations.NotNull;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */ 
/* 10:   */ public class RegExpBranchImpl
/* 11:   */   extends RegExpElementImpl
/* 12:   */   implements RegExpBranch
/* 13:   */ {
/* 14:   */   public RegExpBranchImpl(ASTNode paramASTNode)
/* 15:   */   {
/* 16:29 */     super(paramASTNode);
/* 17:   */   }
/* 18:   */   
/* 19:   */   @NotNull
/* 20:   */   public RegExpAtom[] getAtoms()
/* 21:   */   {
/* 22:34 */     ASTNode[] arrayOfASTNode = getNode().getChildren(RegExpElementTypes.ATOMS);
/* 23:35 */     RegExpAtom[] arrayOfRegExpAtom = new RegExpAtom[arrayOfASTNode.length];
/* 24:36 */     for (int i = 0; i < arrayOfRegExpAtom.length; i++) {
/* 25:37 */       arrayOfRegExpAtom[i] = ((RegExpAtom)arrayOfASTNode[i].getPsi());
/* 26:   */     }
/* 27:39 */     RegExpAtom[] tmp48_47 = arrayOfRegExpAtom;
/* 28:39 */     if (tmp48_47 == null) {
/* 29:39 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/psi/impl/RegExpBranchImpl", "getAtoms" }));
/* 30:   */     }
/* 31:39 */     return tmp48_47;
/* 32:   */   }
/* 33:   */   
/* 34:   */   public void accept(RegExpElementVisitor paramRegExpElementVisitor)
/* 35:   */   {
/* 36:43 */     paramRegExpElementVisitor.visitRegExpBranch(this);
/* 37:   */   }
/* 38:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.lang.regexp.psi.impl.RegExpBranchImpl

 * JD-Core Version:    0.7.0.1

 */